From: Daniel van Vugt Date: Thu, 17 Sep 2020 07:24:12 +0000 (+0800) Subject: overview: Emit 'hidden' after it's *really* hidden X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~574^2^2~85 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=956db078c3ffdca8d741b97986df2ba1f50ca00f;p=gnome-shell.git overview: Emit 'hidden' after it's *really* hidden Previously we would emit 'hidden' before the overview was fully hidden, so any attempts to animate windows on that signal could still fail. Part-of: --- diff --git a/js/ui/overview.js b/js/ui/overview.js index 12b966927..87bf835b0 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -609,12 +609,14 @@ var Overview = class { this._visible = false; this._animationInProgress = false; - this.emit('hidden'); // Handle any calls to show* while we were hiding - if (this._shown) + if (this._shown) { + this.emit('hidden'); this._animateVisible(OverviewControls.ControlsState.WINDOW_PICKER); - else + } else { Main.layoutManager.hideOverview(); + this.emit('hidden'); + } Main.panel.style = null;